let JsonMerge = function(json1,json2){
	for(let i in json2){
		if(typeof json1[i] === 'undefined' || typeof json2[i] === 'string' || typeof json2[i] === 'number'){
			json1[i] = json2[i]
		}else{
			if(Array.isArray(json2[i])){
				if(Array.isArray(json1[i])){
					json1[i] = json1[i].concat(json2[i])
				}else{
					json1[i] = json2[i]
				}
			}else{
				json1[i] = JsonMerge(json1[i],json2[i])
			}
		}
	}
	return json1
}
module.exports = JsonMerge